package cn.ecut.dzy.service;


import cn.ecut.dzy.pojo.Cart;
import cn.ecut.dzy.pojo.Order;
import cn.ecut.dzy.pojo.OrderItem;

import java.util.List;

public interface OrderService {
    public String createOrder(Cart cart, Integer userId);

    public List<Order> queryOrders();
    public int changeOrderStatus(Order order,String status);

    public List<Order> queryOrdersByUserId(String userId);


    void sendOrder(String orderId);

    List<Order> showAllOrders();

    List<OrderItem> showOrderDetail(String orderId);

    void signOrder(String orderId);

    void payOrder(String orderId);
}
